package com.crm.service.userForumManager;

import com.crm.model.entity.userForumManager.UserForum;
import com.crm.model.qo.userForumManager.UserForumQO;
import com.crm.model.vo.userForumManager.UserForumInfoVO;
import com.crm.model.vo.userForumManager.UserForumVO;

import java.util.List;

/**
 * @Author:chaifuyou
 * @Date: 2021/5/24 9:43
 */
public interface UserForumDbService {

    /**
     * 查询论坛信息
     * @param userForumQO
     * @param order
     * @return
     */
    List<UserForumVO> selectUserForumListPage(UserForumQO userForumQO, String order);

    /**
     * 发布论坛
     * @param userForum
     */
    void addUserForum(UserForum userForum);

    /**
     * 获取用户的论坛信息
     * @param accountId
     * @return
     */
    UserForumInfoVO selectLoginUserForumInfo(String accountId);

    /**
     * 删除论坛
     * @param userForumId
     * @return
     */
    boolean delUserForum(String userForumId);
}
